Creating a dialog box

A dialog box is a typical short form and provides a good introduction to creating forms. The following example provides instructions for creating a search dialog box: a text field and a button using the Get URL statement. By entering the required information, users can pass a keyword to a search engine on a remote web server.

You can use the steps in Creating pop-up menus to make the password dialog box a pop-up menu.

To create a simple search dialog box:

1 Create a button that you can use to submit the entered data.
Do not include any text over the button. You can do this within each form to suit the specific needs of the instance.
2 Create a label, a blank text field, and an instance of the button on the Stage as follows:
3 Select the text field and choose Modify > Text Field.
4 Specify a name for the variable. (Individual search engines may require a specific variable. Contact the search engine's provider for details.) Select Draw Border and Background, and Include All Font Outlines. Click OK.
5 On the Stage, select the button and choose Modify > Instance.
6 Click the Actions tab. Click the + (plus) and choose Get URL from the pop-up menu.
7 In the Parameters pane, set the following options:
For URL, enter the URL for the search engine.
For Window, select _blank. This will open a new window with the search results in it.
For Variables, select Send Using GET.
8 On the Stage, create a text field over the button instance with the text you want.
9 To see the form work, choose File > Publish Preview > HTML.